<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <title>listTile</title>
    <link rel="stylesheet" type="text/css" href="<s:url value='js/easyUI/themes/default/easyui.css'></s:url>" />
    <link rel="stylesheet" type="text/css" href="<s:url value='js/easyUI/themes/icon.css'></s:url>" />
    <link rel="stylesheet" type="text/css" href="<s:url value='common/css/common.css'></s:url>" />

    <script type="text/javascript" src="<s:url value='js/easyUI/easyUI.js'></s:url>"></script>
    <script type="text/javascript">
    	function showArticle(articleId){
    		try{
    			$("#articlePanel").window('open');
    			$("#articlePanel").window('refresh','<s:url action="article/article_getContent" />?article.articleId='+articleId)
    		}catch(e){alert(e.message)}
    	}
    </script>
</head>

<body class='fullWidth fullHeight borderShow'>
	<div class='center middleWidth'>
		<div class="easyui-panel" title="Title" style='height:600px'>
			<s:iterator value="articles" var='article'>
				<div>
					<a href='javascript:showArticle("${article.articleId}")' >${article.title}</a>
				</div>
			</s:iterator>
		</div>
	</div>
   <div id="articlePanel" 
   		class="easyui-window" 
   		title="article content" 
   		data-options="iconCls:'icon-save',closed:true" 
   		style="width:800px;height:600px;padding:10px;">
   		正在获取。。。。。。。
   </div>  
</body>
</html>